package com.sright.bcard.component.dal.dao.impl;

import com.sright.bcard.common.service.share.base.dao.BaseDAOImpl;
import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.component.dal.dao.ComponentConfigWhiteListDAO;
import com.sright.bcard.component.dal.entity.ComponentConfigWhiteListDO;
import com.sright.bcard.component.dal.mapper.ComponentConfigWhiteListDOMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class ComponentConfigWhiteListDAOImpl extends BaseDAOImpl<ComponentConfigWhiteListDO> implements ComponentConfigWhiteListDAO {

    @Resource
    private ComponentConfigWhiteListDOMapper componentConfigWhiteListDOMapper;

    @Override
    protected BaseMapper<ComponentConfigWhiteListDO> getObjMapper() {
        return componentConfigWhiteListDOMapper;
    }

    @Override
    public ComponentConfigWhiteListDO selectByEnterpriseId(Long enterpriseId) {
        return componentConfigWhiteListDOMapper.selectByEnterpriseId(enterpriseId);
    }
}
